package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 数字切片-病例珍藏or点赞
 *
 * @author Auto Generator
 * @date 2022-12-31 18:18:42
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "数字切片-病例珍藏or点赞")
public class DigitalSliceCaseCollectLike {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", hidden = true)
    private Long id;

    /**
     * 病例id
     */
    @ApiModelProperty("病例id")
    @NotNull(message = "病例id不能为空")
    private Long caseId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", hidden = true)
    private Long userId;

    /**
     * 类型，0：收藏，1：点赞
     */
    @ApiModelProperty("类型，0：收藏，1：点赞")
    @NotNull(message = "类型不能为空")
    private Byte type;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", hidden = true)
    private Date updateTime;
}